<?php
defined('OA_LIB_PATH') || define('OA_LIB_PATH', '/opt/op/OALib');
defined('OPEN_LIB_PATH') || define('OPEN_LIB_PATH', '/opt/op/OpenLib');

require_once 'Log.php';
require_once OA_LIB_PATH . '/util/helper/daemon.php';
require_once OPEN_LIB_PATH . '/stat/lib/OaLogWorker.php';

daemonize();

$logger = Log::factory('console', '', '', array(), PEAR_LOG_INFO);
$opStatWorker = new OaLogWorker($logger);
$opStatWorker->run();
